package com.tarena.lbs.business.Enums;

import com.tarena.lbs.base.protocol.enums.ErrorCodeSupport;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum BusinessResultEnum implements ErrorCodeSupport {
    /**
     * 业务异常，code 从9001开始
     */
    PHONE_EXIST("9001", "手机号已注册商家"),
    BUSINESS_ERROR("9002", "保存商家失败");

    @Override
    public String toString() {
        return "BusinessResultEnum{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }

    private String code;
    private String message;
}
